package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Size;
import java.util.Date;

public class TStation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 名称 */
    @Size(min = 0, max = 60, message = "岗位名称不能超过60个字符")
    @Excel(name = "名称")
    private String name;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "名称", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createts;

    /** $column.columnComment */
    @Excel(name = "名称")
    private Integer createdby;

    /** $column.columnComment */
    @Excel(name = "名称")
    private Integer companyid;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCreatets(Date createts)
    {
        this.createts = createts;
    }

    public Date getCreatets()
    {
        return createts;
    }
    public void setCreatedby(Integer createdby)
    {
        this.createdby = createdby;
    }

    public Integer getCreatedby()
    {
        return createdby;
    }
    public void setCompanyid(Integer companyid)
    {
        this.companyid = companyid;
    }

    public Integer getCompanyid()
    {
        return companyid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("remark", getRemark())
                .append("createts", getCreatets())
                .append("createdby", getCreatedby())
                .append("companyid", getCompanyid())
                .toString();
    }
}
